package com.etone.system.service.impl;

import java.util.List;
import java.util.Map;

import com.etone.common.utils.DateUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.etone.system.mapper.SysLieMapper;
import com.etone.system.domain.SysLie;
import com.etone.system.service.ISysLieService;

/**
 * 货架列Service业务层处理
 * 
 * @author etone
 * @date 2025-05-27
 */
@Service
public class SysLieServiceImpl implements ISysLieService 
{
    @Autowired
    private SysLieMapper sysLieMapper;

    /**
     * 查询货架列
     * 
     * @param id 货架列主键
     * @return 货架列
     */
    @Override
    public Map<String,Object> selectSysLieById(Long id)
    {
        return sysLieMapper.selectSysLieById(id);
    }

    /**
     * 查询货架列列表
     * 
     * @param sysLie 货架列
     * @return 货架列
     */
    @Override
    public List<Map<String,Object>> selectSysLieList(SysLie sysLie)
    {
        return sysLieMapper.selectSysLieList(sysLie);
    }

    /**
     * 新增货架列
     * 
     * @param sysLie 货架列
     * @return 结果
     */
    @Override
    public int insertSysLie(SysLie sysLie)
    {
        sysLie.setCreateTime(DateUtils.getNowDate());
        return sysLieMapper.insertSysLie(sysLie);
    }

    /**
     * 修改货架列
     * 
     * @param sysLie 货架列
     * @return 结果
     */
    @Override
    public int updateSysLie(SysLie sysLie)
    {
        sysLie.setUpdateTime(DateUtils.getNowDate());
        return sysLieMapper.updateSysLie(sysLie);
    }

    /**
     * 批量删除货架列
     * 
     * @param ids 需要删除的货架列主键
     * @return 结果
     */
    @Override
    public int deleteSysLieByIds(Long[] ids)
    {
        return sysLieMapper.deleteSysLieByIds(ids);
    }

    /**
     * 删除货架列信息
     * 
     * @param id 货架列主键
     * @return 结果
     */
    @Override
    public int deleteSysLieById(Long id)
    {
        return sysLieMapper.deleteSysLieById(id);
    }

    @Override
    public List<Map<String, Object>> getLieList() {

        return sysLieMapper.getLieList();
    }
}
